package com.cnyz.mapper;

import com.cnyz.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeMapper {
    public void addNotice(Notice notice);
    public void addSomeNotices(@Param("list") List<Notice> notices);
    public void updateNotice(Notice notice);
    public void deleteNotice(Long id);

    public Notice getNoticeByID(Long id);
    public List<Notice> getNoticesByUserID(Long id);

}
